home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AIText.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
2KB
|
114 lines
/**
AIText.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Text Object Suite.
**/
#ifndef __AIText__
#define __AIText__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIArt.h"
#include "AIFixedMath.h"
#include "AITextRun.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAITextSuite "AI Text Suite"
#define kAITextVersion 2
typedef enum {
kUnknownTextType = -1,
kPointTextType,
kInPathTextType,
kOnPathTextType
} AITextType;
// Text errors.
#define kNoTextErr 'NOTX'
#define kTypeTextErr 'TYTX'
#define kObjectTextErr 'OBTX'
#define kPathTextErr 'PTTX'
#define kFlowTextErr 'FLTX'
#define kRunTextErr 'RNTX'
#define kLineTextErr 'LNTX'
#define kStreamTextErr 'SMTX'
#define kIndexTextErr 'IXTX'
#define kCountTextErr 'CTTX'
#define kLimitTextErr 'LMTX'
#define kMemoryTextErr 'METX'
#define kSelectTextErr 'SLTX'
#define kBlockTextErr 'BLTX'
#define kOnlyTextErr 'ONTX'
#define kUnimplementedTextErr 'UNTX'
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL FXErr (*GetTextType) ( AIArtHandle text, AITextType *oldType );
MACPASCAL FXErr (*SetTextType) ( AIArtHandle text, AITextType newType );
MACPASCAL FXErr (*HasTextSelection) ( Boolean *selection );
MACPASCAL FXErr (*ShowTextSelection) ( void );
MACPASCAL FXErr (*GetTextSelection) ( AIArtHandle *parent, unsigned long *selStart, unsigned long *selLimit );
MACPASCAL FXErr (*SetTextSelection) ( AIArtHandle parent, unsigned long selStart, unsigned long selLimit );
} AITextSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif